import { createApp } from 'vue'
import App from './App.vue'
import { createPinia } from 'pinia'
import router from '@/router'
import installElement from '@/module/ElementPLUS'
import installLazyPlugin from '@/module/lazyPlugin'
import initNProgress from '@/module/NProgress'
import 'element-plus/theme-chalk/el-loading.css'
import 'element-plus/theme-chalk/el-message.css'
import 'nprogress/nprogress.css'
import './index.css'

const app = createApp(App)

installLazyPlugin(app)
installElement(app)

initNProgress()

app.use(createPinia())
app.use(router)

app.mount('#app')
